package com.yanqu.road.server.logic.system;

import com.yanqu.road.entity.enums.eSystemId;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.musicroom.MusicRoomRankActivityModule;
import com.yanqu.road.server.gameplayer.module.rebate.ChinaRebateModule;

public class SystemOpenActivity extends BaseSystemOpen{

    public SystemOpenActivity(int systemId, GamePlayer player) {
        super(systemId, player);
    }

    @Override
    public void initSystem() {
        //返利门客基金
        if(systemId == eSystemId.PatronsAbilityActivity.getValue()){
            player.getModule(ChinaRebateModule.class).rebatePatronFund();
        }else if (systemId == eSystemId.MusicRoomRank.getValue()){
            player.getModule(MusicRoomRankActivityModule.class).initSystemOpen();
        }
    }
}
